9232d113f12be0f917ffddbdb1499fe13b4ceda2,test-src/org/pentaho/reporting/platform/plugin/async/AsyncIT.java,AsyncIT,setUp,#,94
Before Change
microPlatform.define( "ISchedulingDirectoryStrategy", new HomeSchedulingDirStrategy() );
microPlatform.addLifecycleListener( new AsyncSystemListener() );
repository = mock( IUnifiedRepository.class );
microPlatform.define( "IUnifiedRepository", repository );
After Change
microPlatform.define( "ISchedulingDirectoryStrategy", new HomeSchedulingDirStrategy() );
microPlatform.addLifecycleListener( new AsyncSystemListener() );
IUnifiedRepository repository = mock( IUnifiedRepository.class );
final RepositoryFile repositoryFile = mock( RepositoryFile.class );
when( repositoryFile.getPath() ).thenReturn( "/home/unknown" );
when( repositoryFile.getId() ).thenReturn( "/home/unknown" );
when( repository.getFile( "/home/unknown" ) ).thenReturn( repositoryFile );
microPlatform.define( "IUnifiedRepository", repository );